package net.jueb.frameWorkDemo.mvc4mod.bean;

public class JsonResult {
	
	private int code;
	private String errormessage;
	public JsonResult() {
	}
	public JsonResult(int code) {
		super();
		this.code = code;
		this.errormessage = "";
	}
	public JsonResult(int code, String errormessage) {
		super();
		this.code = code;
		this.errormessage = errormessage;
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getErrormessage() {
		return errormessage;
	}
	public void setErrormessage(String errormessage) {
		this.errormessage = errormessage;
	}
	@Override
	public String toString() {
		return "JsonResult [code=" + code + ", errormessage=" + errormessage + "]";
	}
}
